<?php

declare (strict_types = 1);

namespace app\common\model\system;

use app\common\model\BaseModel;
use app\common\model\permission\Admin;

class OperateLog extends BaseModel
{
    protected $name = 'operate_log';

    protected $type = [
        'params'    =>  'json',
    ];

    /**
     * 关联管理员表
     *
     * @return \think\model\relation\BelongsTo
     */
    public function admin(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(Admin::class, 'admin_id', 'id');
    }
}